package com.cloudbroker.bcs.platform.dav.bizapi.service.viewpoint.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.EnumValue;
import com.cloudbroker.bcs.common.validatioin.annotation.IntegerString;
import com.cloudbroker.bcs.common.validatioin.annotation.Length;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.common.validatioin.constants.ValidationConstants;
import com.cloudbroker.bcs.platform.dav.bizapi.constants.status.DynamicType;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;

import javax.validation.constraints.Size;

/**
 * Created by lnq on 2016/11/29.
 */
public class DynamicListForm extends HSBCPSVO {

    private static final long serialVersionUID = 2224893683670740384L;

    @NotBlank
    @IntegerString
    @EnumValue(enumClass = DynamicType.class)
    private String dynamic_type;

    @Length(max = 32)
    private String tenant_key;

    @NotBlank
    protected String position_str;

    @NotBlank
    protected String company_id;


    @NotBlank
    @IntegerString
    @Size(max = 5, message = ValidationConstants.MSG_MAXCHARLEN)
    protected String request_num;

    public String getDynamic_type() {
        return dynamic_type;
    }

    public void setDynamic_type(String dynamic_type) {
        this.dynamic_type = dynamic_type;
    }

    public String getTenant_key() {
        return tenant_key;
    }

    public void setTenant_key(String tenant_key) {
        this.tenant_key = tenant_key;
    }

    public String getPosition_str() {
        return position_str;
    }

    public void setPosition_str(String position_str) {
        this.position_str = position_str;
    }

    public String getRequest_num() {
        return request_num;
    }

    public void setRequest_num(String request_num) {
        this.request_num = request_num;
    }

    public String getCompany_id() {
        return company_id;
    }

    public void setCompany_id(String company_id) {
        this.company_id = company_id;
    }


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("DynamicListForm{");
        sb.append("dynamic_type='").append(dynamic_type).append('\'');
        sb.append(", tenant_key='").append(tenant_key).append('\'');
        sb.append(", position_str='").append(position_str).append('\'');
        sb.append(", company_id='").append(company_id).append('\'');
        sb.append(", request_num='").append(request_num).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
